//linkedList.h
#ifndef __LINKEDLIST_H__
#define __LINKEDLIST_H__

#include <stdlib.h>
#include <stdio.h>

#define CHECK_ALC_ERROR(var)    \
  if ((var)==NULL){perror("cant alloc"); _exit(EXIT_FAILURE);}

typedef struct el_s{
  void *val;
  struct el_s * next;
}EL;

typedef struct li_s{
  struct el_s * first;
  struct el_s * last;
  int size;
}LIST;



LIST* createList();

void addEl(LIST *list, void *val);

void** getArray(LIST *list);

void* removeFirst(LIST *list);

int getSize(LIST *list);
#endif
